package com.seal.tsms.school.entity;

import com.seal.tsms.base.entity.BaseEntity;

import javax.persistence.*;

/**
 * 学员档案持久化类
 * Created by zhaishuai on 2016/1/20.
 */
@Entity
@Table(name = "student_records")
public class StudentRecord extends BaseEntity {
    private StudentInfo studentInfo = new StudentInfo();

    @ManyToOne(fetch = FetchType.LAZY,cascade = CascadeType.ALL)
    @JoinColumn(name = "studentinfo_id")
    public StudentInfo getStudentInfo() {
        return studentInfo;
    }
    public void setStudentInfo(StudentInfo studentInfo) {
        this.studentInfo = studentInfo;
    }

    //档案编号
    private String recordNum;
    //中心代码
    private String centerCode;
    //教材编码
    private String encodingCode;
    //备注
    private String remarks;
    //学员类型
    private String studentType;
    //通行证
    private String permit;
    //产品编码
    private String productCode;
    //班级
    private String grade;
    //班主任
    private String classTeacher;
    //技术教员
    private String technologyTeacher;
    //学员状态
    private String statu;

    public String getStatu() {
        return statu;
    }

    @Column(name="statu")
    public void setStatu(String statu) {
        this.statu = statu;
    }

    @Column(name="record_num")
    public String getRecordNum() {
        return recordNum;
    }
    public void setRecordNum(String recordNum) {
        this.recordNum = recordNum;
    }
    @Column(name="center_code")
    public String getCenterCode() {
        return centerCode;
    }

    public void setCenterCode(String centerCode) {
        this.centerCode = centerCode;
    }
    @Column(name="encoding_code")
    public String getEncodingCode() {
        return encodingCode;
    }

    public void setEncodingCode(String encodingCode) {
        this.encodingCode = encodingCode;
    }
    @Column(name="remarks")
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
    @Column(name="student_type")
    public String getStudentType() {
        return studentType;
    }

    public void setStudentType(String studentType) {
        this.studentType = studentType;
    }
    @Column(name="permit")
    public String getPermit() {
        return permit;
    }

    public void setPermit(String permit) {
        this.permit = permit;
    }
    @Column(name="product_code")
    public String getProductCode() {
        return productCode;
    }
    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }
    @Column(name="grade")
    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }
    @Column(name="class_teacher")
    public String getClassTeacher() {
        return classTeacher;
    }

    public void setClassTeacher(String classTeacher) {
        this.classTeacher = classTeacher;
    }
    @Column(name="technology_teacher")
    public String getTechnologyTeacher() {
        return technologyTeacher;
    }

    public void setTechnologyTeacher(String technologyTeacher) {
        this.technologyTeacher = technologyTeacher;
    }

}
